#ifndef  __APP_WORKFLOW_H__
#define  __APP_WORKFLOW_H__

#ifdef   APP_GLOBALS_WORKFLOW
#define  APP_EXT_WORKFLOW
#else
#define  APP_EXT_WORKFLOW  extern
#endif

/* Result Request */
#define WorkflowOutRequestBit_RelayOut                DEF_BIT_00
#define WorkflowOutRequestBit_WaveRequest             DEF_BIT_01
#define WorkflowOutRequestBit_HCIShow                 DEF_BIT_03
#define WorkflowOutRequestBit_MemoryAccumu            DEF_BIT_04
#define WorkflowOutRequestBit_MemoryCfg               DEF_BIT_05
#define WorkflowOutRequestBit_MemoryRecord            DEF_BIT_06
#define WorkflowOutRequestBit_NextMode                DEF_BIT_07

/* Workflow OS_Flags config bits */
#define OSWORKFLOWFlags_WaveRequest                 ((OS_FLAGS)DEF_BIT_00)
#define OSWORKFLOWFlags_InOrderHandleRequest        ((OS_FLAGS)DEF_BIT_01)
#define OSWORKFLOWFlags_WithoutOrderHandleRequest   ((OS_FLAGS)DEF_BIT_02)
#define OSWORKFLOWFlags_ReflashRequest              ((OS_FLAGS)DEF_BIT_03)
#define OSWORKFLOWFlags_AlarmHandleRequest          ((OS_FLAGS)DEF_BIT_04)
#define OSWORKFLOWFlags_PIDControlRequest           ((OS_FLAGS)DEF_BIT_05)
#define OSWORKFLOWFlags_SelfTiming40HZ              ((OS_FLAGS)DEF_BIT_06)
#define OSWORKFLOWFlags_SelfTiming10HZ              ((OS_FLAGS)DEF_BIT_07)

#define OSWORKFLOWFlags_ALL                         (OSWORKFLOWFlags_WaveRequest              |\
                                                     OSWORKFLOWFlags_InOrderHandleRequest     |\
                                                     OSWORKFLOWFlags_WithoutOrderHandleRequest|\
                                                     OSWORKFLOWFlags_ReflashRequest           |\
                                                     OSWORKFLOWFlags_PIDControlRequest        |\
                                                     OSWORKFLOWFlags_AlarmHandleRequest       |\
                                                     OSWORKFLOWFlags_SelfTiming40HZ           |\
                                                     OSWORKFLOWFlags_SelfTiming10HZ)

#endif